package com.eonmind.vip.provider;

import com.eonmind.common.contract.data.response.ResponseEntity;
import com.eonmind.common.provider.dto.VipDto;
import com.eonmind.vip.contract.api.VipToPayFeignService;
import com.eonmind.vip.service.VipToPayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class VipToPayServerProvider implements VipToPayFeignService {

    @Autowired
    private VipToPayService vipToPayService;


    @Override
    public ResponseEntity<Boolean> updateUserPlan(List<VipDto.PayToVipOrderSucDto> order) {
        System.out.println("fdsafd");
        vipToPayService.updateUserPlan(order);
        return null;
    }

//    @Override
//    public ResponseEntity<Boolean> updateUserPlan(PayToVipOrderSucDto[] list) {
//        return null;
//    }
}
